﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004A3 RID: 1187
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EOGFJBFAKBK : IMessage<EOGFJBFAKBK>, IMessage, IEquatable<EOGFJBFAKBK>, IDeepCloneable<EOGFJBFAKBK>, IBufferMessage
	{
		// Token: 0x17000F41 RID: 3905
		// (get) Token: 0x06003564 RID: 13668 RVA: 0x000929D4 File Offset: 0x00090BD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EOGFJBFAKBK> Parser
		{
			get
			{
				return EOGFJBFAKBK._parser;
			}
		}

		// Token: 0x17000F42 RID: 3906
		// (get) Token: 0x06003565 RID: 13669 RVA: 0x000929DB File Offset: 0x00090BDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EOGFJBFAKBKReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F43 RID: 3907
		// (get) Token: 0x06003566 RID: 13670 RVA: 0x000929ED File Offset: 0x00090BED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EOGFJBFAKBK.Descriptor;
			}
		}

		// Token: 0x06003567 RID: 13671 RVA: 0x000929F4 File Offset: 0x00090BF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EOGFJBFAKBK()
		{
		}

		// Token: 0x06003568 RID: 13672 RVA: 0x000929FC File Offset: 0x00090BFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EOGFJBFAKBK(EOGFJBFAKBK other) : this()
		{
			this.itemId_ = other.itemId_;
			this.itemCount_ = other.itemCount_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003569 RID: 13673 RVA: 0x00092A2D File Offset: 0x00090C2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EOGFJBFAKBK Clone()
		{
			return new EOGFJBFAKBK(this);
		}

		// Token: 0x17000F44 RID: 3908
		// (get) Token: 0x0600356A RID: 13674 RVA: 0x00092A35 File Offset: 0x00090C35
		// (set) Token: 0x0600356B RID: 13675 RVA: 0x00092A3D File Offset: 0x00090C3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x17000F45 RID: 3909
		// (get) Token: 0x0600356C RID: 13676 RVA: 0x00092A46 File Offset: 0x00090C46
		// (set) Token: 0x0600356D RID: 13677 RVA: 0x00092A4E File Offset: 0x00090C4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemCount
		{
			get
			{
				return this.itemCount_;
			}
			set
			{
				this.itemCount_ = value;
			}
		}

		// Token: 0x0600356E RID: 13678 RVA: 0x00092A57 File Offset: 0x00090C57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EOGFJBFAKBK);
		}

		// Token: 0x0600356F RID: 13679 RVA: 0x00092A65 File Offset: 0x00090C65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EOGFJBFAKBK other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && this.ItemCount == other.ItemCount && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003570 RID: 13680 RVA: 0x00092AA4 File Offset: 0x00090CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.ItemCount != 0U)
			{
				num ^= this.ItemCount.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003571 RID: 13681 RVA: 0x00092AFC File Offset: 0x00090CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003572 RID: 13682 RVA: 0x00092B04 File Offset: 0x00090D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003573 RID: 13683 RVA: 0x00092B10 File Offset: 0x00090D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemCount != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ItemCount);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003574 RID: 13684 RVA: 0x00092B6C File Offset: 0x00090D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.ItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemCount);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003575 RID: 13685 RVA: 0x00092BC4 File Offset: 0x00090DC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EOGFJBFAKBK other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.ItemCount != 0U)
			{
				this.ItemCount = other.ItemCount;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003576 RID: 13686 RVA: 0x00092C14 File Offset: 0x00090E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003577 RID: 13687 RVA: 0x00092C20 File Offset: 0x00090E20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemCount = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040014ED RID: 5357
		private static readonly MessageParser<EOGFJBFAKBK> _parser = new MessageParser<EOGFJBFAKBK>(() => new EOGFJBFAKBK());

		// Token: 0x040014EE RID: 5358
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014EF RID: 5359
		public const int ItemIdFieldNumber = 9;

		// Token: 0x040014F0 RID: 5360
		private uint itemId_;

		// Token: 0x040014F1 RID: 5361
		public const int ItemCountFieldNumber = 7;

		// Token: 0x040014F2 RID: 5362
		private uint itemCount_;
	}
}
